// ex3_6.cpp -- mile to gallon
// 1 gallon equal to 3.875  litre
// 1 mile equal to 1.609 kilometer
// 100 kilometer equal to 62.14 miles.
// 19mpg ~~ 12.41/100km.
// 127mpg ~~ 8.71/100km.
#include <iostream>

int main(void)
{
    using namespace std;
    double mile1, gallon1, mile_gallon_unit;
    double kilometer1, litre1, kilometer_litre_unit;

    cout << "Enter 100 km to consume: (:litre): ";
    cin >> litre1;
    gallon1 = litre1 / 3.875;
    cout << "You enter 100 km to consume: litres: " << litre1
         << " liters equalt to " << gallon1 << " gallons." << endl;

    mile1 = (gallon1 / 12.41) * 19;
    cout << "You enter 100 km to consume: litres: could drive " 
         << mile1 << " miles." << endl;
}